package cn.itcast.erp.entity;

import cn.itcast.erp.entity.utils.Base;
import org.springframework.stereotype.Component;

import javax.validation.constraints.NotBlank;
import java.io.Serializable;
/*
 * @author 刘鑫鑫
 * @date 2019/6/5
 * */

@Component
public class Store extends Base implements Serializable {
    private Long uuid;//编号

    @NotBlank(message = "名称不能为空")
    private String name;//名称

    private Long empuuid;//员工编号

    private String address;

    private Emp emp;

    private String ename;

    public Emp getEmp() {
        return emp;
    }

    public void setEmp(Emp emp) {
        this.emp = emp;
    }

    public String getEname() {
        return ename;
    }

    public void setEname(String ename) {
        this.ename = ename;
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    public Long getUuid() {
        return uuid;
    }

    public void setUuid(Long uuid) {
        this.uuid = uuid;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Long getEmpuuid() {
        return empuuid;
    }

    public void setEmpuuid(Long empuuid) {
        this.empuuid = empuuid;
    }

    @Override
    public String toString() {
        return "Store{" +
                "uuid=" + uuid +
                ", name='" + name + '\'' +
                ", empuuid=" + empuuid +
                ", address='" + address + '\'' +
                ", emp=" + emp +
                ", ename='" + ename + '\'' +
                '}';
    }
}
